package com.gk.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eight.pojo.TbUser;
import com.eight.vo.TbUserVo;

import com.eight.vo.UserChartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户dao层
 * @author: GK
 * @date: 2023/2/27 10:27
 * @version:No1.0
 */
@Mapper
public interface TbUserDao extends BaseMapper<TbUser> {

    List<UserChartVo> selectUserList();

    /**
     * 模糊查询
     * @param tbUserVo 查询条件
     * @return 返回查询的内容
     */
    Page<TbUser> selectLIkeUser(Page<TbUser> page ,@Param("tbUserVo") TbUserVo tbUserVo);


    int updateUser(TbUser tbUser);
}
